import { getAll as getDepartment } from "@/api/system/department";
import { getAllByDepartment } from "@/api/system/user";

var departmentData = [{}];
var userData = [{}];
const radioData = [
  { value: 0, label: "线上会议" },
  { value: 1, label: "线下会议" },
];

getDepartment().then((res) => {
  departmentData = res.data.map((e: any) => {
    return {
      value: e.department_Id,
      label: e.departmentName,
    };
  });
});
getAllByDepartment().then((res) => {
  userData = res.data.map((e: any) => {
    return {
      value: e.userName,
      label: e.userTrueName,
    };
  });
});
export { radioData, userData, departmentData };
